

#
# This class implement the link desktop functionality
#

DESKTOP_LOCATION = 1
HOME_LOCATION = 2


class DesktopLink( object ):
	def __init__( self, name, url, target, icon = None):
		self.__url = url
		self.__icon = icon
		self.__target = target
		self.__name = name
	
	
	
	def __getUrl( self ):
		return self.__url
	
	def __setUrl( self, url ):
		self.__url = url
	
	def __getIcon( self ):
		return self.__icon
	
	def __setIcon( self, icon ):
		self.__icon = icon
	
	
	def __getTarget( self ):
		return self.__target
	
	def __setTarget( self, target ):
		self.__target = target
	
	def __getName( self ):
		return self.__name
	
	def __setName( self, name ):
		self.__name = name
	
	url = property( fget = __getUrl, fset = __setUrl, doc = 'Url of the link' )
	icon = property( fget = __getIcon, fset = __setIcon, doc = 'Icon of the link' )
	target = property( fget = __getTarget, fset = __setTarget, doc = 'Target of the link' )
	name = property( fget = __getName, fset = __setName, doc = 'Name of the link')


#
# This class implements the Computer Preferences actions over the machine
#

class ComputerConfiguration( object ):
	def setWallpaper( self, url ):
		pass
	
	def createDesktopLink( self, link ):
		pass
